<%-- 
    Document   : index
    Created on : Dec 19, 2011, 12:24:55 AM
    Author     : Hiru
--%>

<%@page import="java.util.List"%>
<%@page import="com.hiruss.efair.entities.Advertisement"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@include file="header.jsp" %>

<div class="content_section">

    <h2><%=request.getAttribute("title")%> </h2>

    <% List<Advertisement> ads = (List<Advertisement>) request.getAttribute("results");
            for (Advertisement ad : ads) {
    %>

    <div class="product_box margin_r35">

        <h3><%=ad.getItem()%></h3>

        <div class="image_wrapper"> <a href="http://www.templatemo.com/page/1" target="_parent"><img src="images/image_02.jpg" 
                                                                                                     alt="<%=ad.getItem()%>" /></a> </div>

        <p class="price">Price: <%=ad.getPrice()%></p>
        <a href="Get?id=<%=ad.getAddId() %>">Detail</a> | <a href="#">Buy Now</a>

    </div>
    <%}%>
    <!--    <div class="product_box margin_r35">
            <h3>Nunc condimentum</h3>
    
            <div class="image_wrapper"> <a href="http://www.templatemo.com/page/2" target="_parent"><img src="images/image_03.jpg" alt="product 3" /></a> </div>
    
            <p class="price">Price: $550</p>
            <a href="#">Detail</a> | <a href="#">Buy Now</a>
        </div>
    
        <div class="product_box">
            <h3>Sed sit amet sem</h3>
    
            <div class="image_wrapper"> <a href="http://www.templatemo.com/page/3" target="_parent"><img src="images/image_04.jpg" alt="product 4" /></a> </div>
    
            <p class="price">Price: $250</p>
            <a href="#">Detail</a> | <a href="#">Buy Now</a>
        </div>-->

    <div class="cleaner"></div>


    <div class="button_01"><a href="#">View All</a></div>

</div>

<%@include file="footer.jsp" %>